<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.*, kr.cadis.clms.dao.*, kr.cadis.clms.model.*, java.sql.Date" %>    
<%
	HolydayDao holydayDao = new HolydayDao();
	List<Holyday> holydayes = holydayDao.selectAll();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<br><br>

<table border="1">
	<tr><th>날짜</th><th>사유</th><th>수정</th><th>삭제</th></tr>
<%
	for(Holyday holyday : holydayes) {
%>	
	<tr>
		<td><%= holyday.getThisDay() %></td>
		<td style="text-align: right;"><%= holyday.getWhatDay() %></td>
		<td><a href="Update.jsp?thisDay=<%= holyday.getThisDay() %>">수정</a></td>
		<td><a href="Delete.jsp?thisDay=<%= holyday.getThisDay() %>">삭제</a></td>
	</tr>
<%
	}
%>	
</table>
<br />
<a href="List.jsp">돌아가기</a>
</body>
</html>